package com.service.admin.news.controller.req;

import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class NewsAddReq {

    private Integer id;

    /**
     * 标题
     */
    @NotBlank(message = "新闻标题不能为空")
    private String newsTitle;
    /**
     * 图片
     */
    private String newsImage;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空")
    private String newsDesc;

    @NotBlank(message = "内容不能为空")
    private String newsContent;
    /**
     * 来源
     */
    private String newsFrom;
    /**
     * 语言
     */
    private String language;

    private Integer isNew;

}
